ServerEvents.recipes(e => {
    //安山总线
    e.recipes.create.item_application(
        "createdelight:andesite_import_bus",
        [
            "create:andesite_casing",
            "functionalstorage:controller_extension"
        ]
    )
        .id("createdelight:andesite_import_bus")
    e.recipes.kubejs.shapeless(
        "createdelight:andesite_export_bus",
        "createdelight:andesite_import_bus"
    )
        .id("createdelight:andesite_export_bus_from_import_bus")
    e.recipes.kubejs.shapeless(
        "createdelight:andesite_import_bus",
        "createdelight:andesite_export_bus"
    )
        .id("createdelight:andesite_import_bus_from_export_bus")
    //钢总线
    e.recipes.create.item_application(
        "createdelight:steel_import_bus",
        [
            "createdelightcore:steel_casing",
            "functionalstorage:controller_extension"
        ]
    )
        .id("createdelight:steel_import_bus")
    e.recipes.kubejs.shapeless(
        "createdelight:steel_export_bus",
        "createdelight:steel_import_bus"
    )
        .id("createdelight:steel_export_bus_from_import_bus")
    e.recipes.kubejs.shapeless(
        "createdelight:steel_import_bus",
        "createdelight:steel_export_bus"
    )
        .id("createdelight:steel_import_bus_from_export_bus")
    //锻造钢总线
    e.recipes.create.item_application(
        "createdelight:forged_steel_import_bus",
        [
            "createdelightcore:forge_steel_casing",
            "functionalstorage:controller_extension"
        ]
    )
        .id("createdelight:forged_steel_import_bus")
    e.recipes.kubejs.shapeless(
        "createdelight:forged_steel_export_bus",
        "createdelight:forged_steel_import_bus"
    )
        .id("createdelight:forged_steel_export_bus_from_import_bus")
    e.recipes.kubejs.shapeless(
        "createdelight:forged_steel_import_bus",
        "createdelight:forged_steel_export_bus"
    )
        .id("createdelight:forged_steel_import_bus_from_export_bus")
    //屠宰室核心
    e.shaped("createdelight:butchery_room", [
        "ABA",
        "BCB",
        "ABA"
    ], {
        A: "create:andesite_casing",
        B: "create:andesite_alloy",
        C: "create:precision_mechanism"
    })
        .id("createdelight:butchery_room")
    e.shaped("createdelight:create_in", [
        " A ",
        "ABA",
        " A "
    ], {
        A: "create:cogwheel",
        B: "create:gearbox"
    })
        .id("createdelight:create_in")
    e.recipes.create.mechanical_crafting("createdelight:hydropower_station", [
        "AAAAA",
        "ABBCA",
        "ABDCA",
        "ABCCA",
        "AAAAA"
    ], {
        A: "ae2:sky_stone_brick",
        B: "ae2:fluix_crystal",
        C: "minecraft:quartz",
        D: "vintageimprovements:redstone_module"
    })
        .id("createdelight:mechanical_crafting/hydropower_station")
    // 涡轮转子
    e.recipes.create.mechanical_crafting("createdelight:wooden_fan", [
        " A A ",
        "ABBBA",
        " BCB ",
        "ABBBA",
        " A A "
    ], {
        A: "#minecraft:wooden_slabs",
        B: "#minecraft:logs",
        C: "create:large_water_wheel"
    })
        .id("createdelight:mechanical_crafting/wooden_fan")
    e.recipes.create.mechanical_crafting("createdelight:steel_fan", [
        " A A ",
        "ABBBA",
        " BCB ",
        "ABBBA",
        " A A "
    ], {
        A: "ad_astra:steel_plate",
        B: "ae2:sky_dust",
        C: "createdelight:wooden_fan"
    })
        .id("createdelight:mechanical_crafting/steel_fan")
    {
        let iner = 'createdelight:steel_fan'
        e.recipes.create.sequenced_assembly('createdelight:forge_steel_fan', iner, [
            e.recipes.create.deploying(iner, [iner, 'ae2:sky_dust']),
            e.recipes.create.filling(iner, [iner, Fluid.of("createdelightcore:molten_forged_steel", 90)]),
            e.recipes.create.pressing(iner, iner)
        ])
            .transitionalItem(iner)
            .loops(4)
            .id("createdelight:sequenced_assembly/forge_steel_fan")
    }
    {
        let iner = 'createdelight:forge_steel_fan'
        e.recipes.create.sequenced_assembly('createdelight:dragon_steel_fan', iner, [
            e.recipes.create.deploying(iner, [iner, 'ae2:sky_dust']),
            e.recipes.create.filling(iner, [iner, FluidIngredients("createdelight:molten_dragon_steel", 90)]),
            e.recipes.create.pressing(iner, iner)
        ])
            .transitionalItem(iner)
            .loops(4)
            .id("createdelight:sequenced_assembly/dragon_steel_fan")
    }

    //合金电炉
    e.recipes.create.mechanical_crafting("createdelight:alloy_electric_furnace", [
        "ABBBA",
        "ACCCA",
        "ADEDA",
        "AFFFA",
        "AAAAA"
    ], {
        A: "#forge:plates/steel",
        B: "#forge:plates/bronze",
        C: "#forge:plates/bronze",
        D: "createmetallurgy:industrial_crucible",
        E: "vintageimprovements:redstone_module",
        F: "create:sturdy_sheet"
    })
        .id("createdelight:mechanical_crafting/alloy_electric_furnace")

    e.recipes.create.mechanical_crafting("createdelight:hydropower_amplifier", [
        "AABAA",
        "ACDCA",
        "BDEDB",
        "ACDCA",
        "AABAA"
    ], {
        A: "createdelight:sky_steel_casing",
        B: "ad_astra:fan",
        C: "createdelight:forged_steel_sheet",
        D: "ad_astra:steel_engine",
        E: "createdelightcore:forged_steel_block"
    })
        .id("createdelight:mechanical_crafting/hydropower_amplifier")
    e.recipes.kubejs.shaped("createdelight:dryer", [
        "ABA",
        "ACA",
        "ADA"
    ], {
        A: "create:copper_bars",
        B: "create:shaft",
        C: "minecraft:magma_block",
        D: "create:nozzle"
    }).id("createdelight:dryer")
    
    e.recipes.kubejs.shaped("createdelight:sprinkler", [
        " A ",
        "ABA",
        " A "
    ], {
        A: "create:fluid_pipe",
        B: "create:fluid_tank"
    }).id("createdelight:sprinkler")
    e.recipes.kubejs.shaped("createdelight:sell_bin", [
        "ABA",
        "ACA",
        "AAA"
    ], {
        A: "#minecraft:planks",
        B: "#forge:chests",
        C: "lightmanscurrency:trading_core"
    }).id("createdelight:sell_bin")

    e.recipes.create.mechanical_crafting("createdelight:big_centrifuge", [
        "AABAA",
        "ACCDA",
        "BCEDA",
        "ACDDA",
        "AABAA"
    ], {
        A: "createdelightcore:steel_casing",
        B: "createdelight:magnetic_mechanism",
        C: "alexscaves:azure_neodymium_ingot",
        D: "alexscaves:scarlet_neodymium_ingot",
        E: "alexscaves:heart_of_iron"
    }).id("createdelight:mechanical_crafting/big_centrifuge")
    e.recipes.create.mechanical_crafting("createdelight:centrifuge_rotor", [
        " A A ",
        "ABABA",
        " ACA ",
        "ABABA",
        " A A "
    ], {
        A: "#forge:plates/aviation_fibers",
        B: "#forge:spring/over_1000",
        C: "vintageimprovements:centrifuge"
    }).id("createdelight:mechanical_crafting/centrifuge_rotor")
    e.recipes.create.mechanical_crafting("createdelight:fission_fuel_assembly", [
        "AAAAA",
        "ABCBA",
        "ABCBA",
        "AAAAA"
    ], {
        A: "create_new_age:reactor_casing",
        B: "alexscaves:uranium_rod",
        C: "alexscaves:fissile_core"
    }).id("createdelight:mechanical_crafting/fission_fuel_assembly")
    e.recipes.create.mechanical_crafting("createdelight:fission_reactor", [
        "AAAAA",
        "ABCBA",
        "ADEDA",
        "ABCBA",
        "AAAAA"
    ], {
        A: "create_new_age:reactor_casing",
        B: "ae2:engineering_processor",
        C: "alexscaves:fissile_core",
        D: "ae2:logic_processor",
        E: "vintageimprovements:redstone_module"
    }).id("createdelight:mechanical_crafting/fission_reactor")
    e.recipes.kubejs.shaped(
        "createdelight:order_deliverer_item",
        [
        "AB ",
        "BC "
    ], {
        A: "createdelight:unopened_order",
        B: "lightmanscurrency:trading_core",
        C: "#forge:chests"
    })
    .id("createdelight:order_deliverer_item")
    // e.recipes.kubejs.shapeless(
    //     "createdelight:contract_executor", 
    //     [
    //         "createdelight:order_deliverer_item",
    //         "#create:table_cloths"
    //     ]
    // ).id("createdelight:contract_executor")

    e.recipes.create.mechanical_crafting("createdelight:mechanical_craft_encoder", [
        "AABAA",
        "ABCBA",
        "BCDCB",
        "ABCBA",
        "AABAA"
    ], {
        A: "create:brass_sheet",
        B: "ae2:molecular_assembler",
        C: "create:brass_casing",
        D: "create:factory_gauge"
    }).id("createdelight:mechanical_crafting/mechanical_craft_encoder")
})